<?php


namespace App\Http\Controllers\Api;
use App\Models\Config;

class ConfigController extends BaseController
{

    public function site() {
        $info = Config::getSiteVal();
        $info['logo_url'] = Config::getLogoUrl($info['logo']);
        return $this->success($info);
    }


    public function commissionedRole() {
        $list = Config::where('key', Config::COMMISSIONED_ROLE_TYPE)->select("id", "value")->get();
        return $this->success($list);
    }

}

